<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>门票订购须知</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/static/layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/static/layuiadmin/style/admin.css" media="all">
    <style type="text/css">
        
    </style>
</head>
<body>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header">门票订购须知</div>
                <div class="layui-card-body">
                    <form class="layui-form" action="" lay-filter="settingForm">

                        <div class="layui-form-item">
                            <p class="layui-form-item" style="width:130px; color: #5390FF;font-size: 20px;margin-left: 50px">订购说明</p>
                            <p class="layui-form-item" style=" color: #5C5C5C;font-size: 16px;margin-left: 50px;margin-top: 20px">预定时间：最早可订明日门票</p>
                            <p class="layui-form-item" style=" color: #5C5C5C;font-size: 16px;margin-left: 50px;margin-top: 20px">有效期： 选择的使用日期当天有效</p>
                        </div>
                        <div class="layui-form-item" style="margin-top: 40px">
                            <p class="layui-form-item" style="width:130px; color: #5390FF;font-size: 20px;margin-left: 50px">费用说明</p>
                            <p class="layui-form-item" style=" color: #5C5C5C;font-size: 16px;margin-left: 50px;margin-top: 20px">费用包含：选择的门票种类以及选择的票数</p>
                        </div>

                         <div class="layui-form-item" style="margin-top: 40px">
                            <p class="layui-form-item" style="width:130px; color: #5390FF;font-size: 20px;margin-left: 50px">使用方法</p>
                            <p class="layui-form-item" style=" color: #5C5C5C;font-size: 16px;margin-left: 50px;margin-top: 20px">使用方法：到售票处凭预定二维码或数字码换取纸质门票</p>
                            <p class="layui-form-item" style=" color: #5C5C5C;font-size: 16px;margin-left: 50px;margin-top: 20px">入园地址：{$tour['city']}{$tour['address']}</p>
                            <div>
                                <label style="margin-left: 50px;font-size: 16px;float: left;margin-top: 7px">入园时间：</label>
                                <div  style="width:320px;float: left;">
                                    <input type="text" value="{$tour['in_tour_time']}" id="tour_time" readonly name="in_tour_time" lay-verify="required" placeholder="店铺可填写，如不填 则默认9:00-16:00" autocomplete="off" class="layui-input">
                                </div>
                            </div>

                        </div>

                          <div class="layui-form-item" style="margin-top: 40px">
                            <p class="layui-form-item" style="width:130px; color: #5390FF;font-size: 20px;margin-left: 50px">退改说明</p>
                            <p class="layui-form-item" style=" color: #5C5C5C;font-size: 16px;margin-left: 50px;margin-top: 20px">退改规则：</p>
                            <p class="layui-form-item" style=" color: #5C5C5C;font-size: 16px;margin-left: 50px;margin-top: 20px">1.未使用可随时申请退款</p>
                            <p class="layui-form-item" style=" color: #5C5C5C;font-size: 16px;margin-left: 50px;margin-top: 20px">2.过期无效</p>
                            <p class="layui-form-item" style=" color: #5C5C5C;font-size: 16px;margin-left: 50px;margin-top: 20px">3.使用日期过后经核实未使用系统将自动 确认订单，无法退款</p>
                            <p class="layui-form-item" style=" color: #5C5C5C;font-size: 16px;margin-left: 50px;margin-top: 20px">4.订单不支持部分退</p>
                            <p class="layui-form-item" style=" color: #5C5C5C;font-size: 16px;margin-left: 50px;margin-top: 20px">5.如需改期，请申请取消后重新预订</p>
                        </div>

                          <div class="layui-form-item" style="margin-top: 40px">
                            <p class="layui-form-item" style="width:130px; color: #5390FF;font-size: 20px;margin-left: 50px">其他说明</p>
                            <p class="layui-form-item" style=" color: #5C5C5C;font-size: 16px;margin-left: 50px;margin-top: 20px">发票说明：如需发票，请在换票时在售票处开取，本 平台不做发票开取工作</p>
                        </div>

                       <!--  <div class="layui-form-item">
                            <label class="layui-form-label" style="width:130px;">入园时间</label>
                            <div class="layui-input-inline" style="width:400px;">
                                <input type="text" value="{$tour['in_tour_time']}" id="tour_time" readonly name="in_tour_time" lay-verify="required" placeholder="店铺可填写，如不填 则默认9:00-16:00" autocomplete="off" class="layui-input">
                            </div>
                        </div> -->

                        <div class="layui-form-item layui-layout-admin">
                            <div class="layui-input-block" style="margin-left:50px;">
                                <div class="layui-inline" style="left: 0;">
                                    <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="sureSubmit">确定</button>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>



<script src="/static/layuiadmin/layui/layui.js"></script>


<script>
    layui.config({
        base: '/static/layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index','form','table','laydate','set','upload'], function(){
        $ = layui.jquery;
        var table = layui.table
            ,admin = layui.admin
            ,element = layui.element
            ,layer = layui.layer
            ,laydate = layui.laydate
            ,upload = layui.upload
            ,form = layui.form;

        form.render('select');

        //时间范围选择
        laydate.render({
            elem: '#tour_time'
            ,type: 'time'
            ,format: 'HH:mm' //可任意组合
            ,range: '~' //或 range: '~' 来自定义分割字符
        });



        //添加提交
        form.on('submit(sureSubmit)', function(data){
            var loading = layer.load(1, {
                shade: [0.1,'#fff'] //0.1透明度的白色背景
            });

            $.ajax({
                url: "{:url('Notice/editTourInfo')}",
                type: 'post',
                dataType: 'json',
                data: {data:data.field},
                success: function(data){
                    if (data.code === 0) {
                        layer.close(loading);
                        layer.msg('添加成功',{icon:1,time:2000});
                    }else{
                        layer.close(loading);
                        layer.msg(data.code,{icon:2,time:1000})
                    }
                }
            });
            return false; //阻止表单跳转。如果需要表单跳转，去掉这段即可。
        });



    });

</script>


</body>
</html>